#include "game_core.h"
#include "./gomoku/gomoku.h"
#include "./sokoban/sokoban.h"

static GameType currentGame = GAME_NONE;
static GameState gameState = GAME_STATE_MENU;

void Game_Enter(GameType game) {
    currentGame = game;
    gameState = GAME_STATE_RUNNING;
    if (game == GAME_GOMOKU) {
        Gomoku_Init();
    } else if (game == GAME_SOKOBAN) {
        Sokoban_Init();
    }
}

void Game_HandleCommand(const char *command) {
    if (currentGame == GAME_GOMOKU) {
        Gomoku_HandleInput(command);
    } else if (currentGame == GAME_SOKOBAN) {
        Sokoban_HandleInput(command);
    }
}